package com.guigu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;


/**
 * 采购单
 */
@Data
public class PurchaseInfo {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    private String buyNumber; //采购单号

    private Integer supplyId; //供应商id

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GM+8")
    private Date ptime; //采购时间

    private Integer totalNum; //采购总数量

    private Double totalMoney; //总金额

    private Integer isShipments; //是否发货
    //0:未发货，1:发货 2:到达总店

    private Integer isAudit; //是否审核
    //0:未审核,1:审核通过 2 审核未通过

    private Integer isDesign;//是否设计了入库表
    //0未设计，1已设计

    private String premark; //备注

    private Integer isDelete; //删除状态
    //0:正常,1:删除

    @TableField(exist = false)
    private List<PurchaseDetailInfo> purchaseDetails; //采购详情表

    @TableField(exist = false)
    private Users user; //供应商

}